package com.walle.concurrenttest.waitnotify;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.waitnotify
 * @Description: ${todo}
 * @date 2019/2/27 14:31
 */
public class Main {

    public static void main(String[] args) {
        PrintABC printABC = new PrintABC('A');

        Thread tA = new Thread(new PrintThread('A','B',printABC));
        Thread tB = new Thread(new PrintThread('B','C',printABC));
        Thread tC = new Thread(new PrintThread('C','A',printABC));

        tA.setName("A");
        tB.setName("B");
        tC.setName("C");


        tA.start();
        tB.start();
        tC.start();

    }

}
